<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理</title>
<style>
.table {
	border-collapse: collapse;
}

.table, .table td, .table th {
	border: 1px solid #d8d8d8;
	padding: 10px;
}
</style>
</head>
<body>

	<table class="table">
		<tr>
			<td colspan="4"><a href="user/add">创建用户</a></td>
		</tr>
		<tr>
			<th>id</th>
			<th>姓名</th>
			<th>性别</th>
			<th>&nbsp;</th>
		</tr>
		<c:forEach items="${list}" var="user">
			<tr>
				<td>${user.uid}</td>
				<td>${user.userName}</td>
				<td>${user.gender}</td>
				<td><a href="user/update?uid=${user.uid }">编辑</a> <a
					onclick="return confirm('确认删除?')"
					href="user/delete?uid=${user.uid }">删除</a></td>
			</tr>
		</c:forEach>
	</table>

</body>
</html>